package JDBC;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

public class StudentMain {

	public static void main(String[] args) {
		
//		Student student = new Student("qingke","MALE",20);
//		try {
//			ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("student2.output"));
//			oos.writeObject(student);
//			oos.close();
//			
//			ObjectInputStream ois = new ObjectInputStream((new FileInputStream("student2.output")));
//			Object object = ois.readObject();
//			ois.close();
//			System.out.println("new student"+object);
//			System.out.println("old student"+student);
//		} catch (ClassNotFoundException e) {
//			e.printStackTrace();
//		} catch (IOException e) {
//			e.printStackTrace();
//		}
//		
		
		
		
	}

}
